<template>
  <div class="app-main">
 
    <component :is='roles'></component>
  </div>
</template>
<script>

import VAdmin from './admin'
import VNormal from './normal'
export default {
  components: {
    VAdmin,
    VNormal
  },
  data () {
    return {
     
    }
  },
  computed: {
    roles(){
      return this.$store.state.login.roles.includes('admin')?'VAdmin':'VNormal'
    }
  },
 
  methods: {
    
  }
}
</script>
<style scoped>

</style>

